import React from 'react'
import { Checkbox } from 'antd'

import './index.scss'
const Header = ({ openAudio, openCamera, setOpenAudio, setOpenCamera }) => {
  return (
    <div className="set-media">
      <Checkbox
        checked={openAudio}
        onChange={setOpenAudio}>开启麦克风</Checkbox>
      <Checkbox
        checked={openCamera}
        onChange={setOpenCamera}>开启摄像头</Checkbox>
    </div>
  )
}

export default Header
